package com.clientes;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Locale;

import org.json.JSONArray;
import org.json.JSONException;

import android.content.Context;
import android.util.Log;

import com.eventos.EventoBean;
import com.eventos.GestorEvento;
import com.eventssmartphone.JSONReader;
import com.eventssmartphone.JSONReaderListener;

public class GestorWish {
	

private static final GestorWish gestor = new GestorWish();
	
	public static GestorWish getInstance(){
		return gestor;
	}
	
	
	public void dameFavoritoJson(Context context, int idCliente, int idEvento){
		
		JSONReader jReader = new JSONReader();
		jReader.setJSONReaderListener((JSONReaderListener)context);
		jReader.execute("http://200.16.7.112:3000/client_management/clients/esta_en_wishlist/"+idCliente + "/" + idEvento +".json");
	}
	
	public int procesarDameFavorito(JSONArray jRating){
		
		if (jRating.length() == 0){
			return 0;
		}
		else 
		{return 1;
			}
	
	}
}
